.index {
  font-size: 12px;
  font-family: "宋体";
  .im-wrap {
    min-width: 1192px;
  }

  .im-header {
    min-width: 952px;
    height: 62px;
    background-color: #e5434e;
    //background:  #e5434e url("../img/header-bg.png") repeat-x 0 0;
    .im-logo {
      float: left;
      margin-top: 7px;
      margin-left: 13px;
      width: 178px;
      height: 45px;
      background: url(../img/title.png) no-repeat 0 0;
    }
    .im-title {
      float: left;
      padding: 0 20px;
      height: 62px;
      line-height: 58px;
      text-align: center;
      text-decoration: none;
      font-size: 18px;
      font-family: \5FAE\8F6F\96C5\9ED1, \5b8b\4f53;
      color: #fff;
      font-weight: 700;
      cursor: pointer;
    }
    .im-title.normal {
      border-bottom: solid 4px transparent;
    }
    .im-title.spe {
      border-bottom: solid 4px @cass-red;
    }

    .im-close {
      float: right;
      width: 20px;
      height: 20px;
      margin-top: 10px;
      margin-right: 10px;
      //background-image: url("../img/im-close.png");
      //background-repeat: no-repeat;
      //background-position: 0 -180px;
      background: url(../img/icon.png) no-repeat 0 -60px;
    }
    .im-close:hover {
     // background-position: -60px -180px;
    }
  }

  .im-content {
    position: relative;
    padding: 10px;
    min-width: 952px;
    border-bottom: solid 1px @grey-b4;
    border-left: solid 1px @grey-b4;
    border-right: solid 1px @grey-b4;
    background-color: @grey-d4;
    .im-recent-contact {
      float: left;
      width:250px;
      background: #fff;
      font-family: "Microsoft YaHei";
      .recentText {
        line-height: 38px;
        font-size: 14px;
        color: #333;
        background: #f5f5f5;
        text-indent: 10px;
      }
      .recentPerson {
        margin-left: 10px;
        min-height: 738px;
      }
    }
    .im-clue-info {
      position: absolute;
      top: 10px;
      right: 10px;
      margin-left: 10px;
      width: 260px;
      min-height: 517px;
      border: 1px solid @grey-b4;
      z-index: 1;
      background-color: #FFF;
      overflow-x: hidden;
      overflow-y: auto;
    }
    .im-clue-content {
      display: block;
      padding: 14px 14px 0 14px;
      p,
      a {
        font-size: 14px;
        line-height: 24px;
      }
      .no-data {
        text-align: center;
        color: #666666;
      }

      .loading-icon {
        display: none;
        margin: auto;
        width: 32px;
        height: 32px;
        background: url(../img/loader.gif) 0 0 no-repeat;
      }
    }
    .im-store-info {
      display: none;
      padding: 10px 0 0 0;
      .no-data {
        text-align: center;
        color: @grey-9;
      }
    }
    .im-my-order {
      display: none;
      padding: 10px 8px 0 14px;
      p {
        font-size: 12px;
        line-height: 24px;
      }
      .number {
        font-size: 14px;
        font-weight: 700;
      }
      .total-price span {
        position: relative;
        top: 2px;
        font-family: Verdana;
        font-size: 18px;
        font-weight: 700;
        color: @cass-red;
      }
    }
    .im-problem-box {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 172px;
    }
    .im-problem-bar {
      padding: 0 10px;
      height: 31px;
      line-height: 29px;
      border-top: 1px solid @grey-c6;
      border-bottom: 1px solid @grey-c6;
      background-color: @grey-f0;
    }
    .im-problem-content p {
      margin: 10px 10px 0;
      text-align: center;
      color: @grey-9;
    }
    .im-clue-tab {
      padding: 0;
      margin-bottom: 0;
      height: 34px;
    }
    li.tab-item {
      display: inline-block;
      padding: 0;
      height: 34px;
      border-right: solid 1px @grey-b4;
      line-height: 32px;
      text-align: center;
      list-style-type: none;
      overflow: hidden;
    }
    li.tab-item:last-child {
      border-right: 0;
    }
    .not-current {
      border-top: solid 1px transparent;
      border-bottom: solid 1px @grey-b4;
      background-color: @grey-f0;
      cursor: pointer;
    }
    .not-current:hover {
      background-color: lighten(@grey-f0, 3%);
    }
    .current {
      border-top: solid 1px @happy-red;
      border-bottom: solid 1px transparent;
      color: @happy-red;
      cursor: default;
    }
    //聊天窗口
    .im-chat-window {
      position: relative;
      margin-right: 270px;
      margin-left: 260px;
      width: 636px;
      z-index: 2;
      border: solid 1px @grey-b4;
      background-color: white;
    }
    .im-chat-list {
      position: relative;
      padding: 0 10px;
      min-height: 320px;
      zoom: 1;
      overflow-x: hidden;
      overflow-y: scroll;
      .im-item {
        margin: 7px 0;
      }

      .im-user-pic {
        position: relative;
        display: block;
        width: 46px;
        height: 46px;
        text-align: center;
        overflow: hidden;
        cursor: default;
      }
      .im-user-pic img {
        width: 46px;
        height: 46px;
      }
      .im-user-pic-cap {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
      }
      .im-message {
        padding: 0 10px;
      }

      table.im-message-table {
        float: right;
        display: inline;
        border-collapse: collapse;
        border-spacing: 0;
      }

    }
    //聊天框气泡
    .im-me {
      .im-user-area {
        position: absolute;
        float: left;
        right: 15px;
        margin-top: 5px;
        margin-right: 10px;
        margin-left: 10px;
        width: 46px;
        text-align: center;
      }
      .im-message-detail {
        position: relative;
        margin-right: 60px;
      }
      .lt {
        width: 10px;
        height: 6px;
        background: url(../img/bubble-me1.png) no-repeat 0 0;
      }
      .ct {
        height: 6px;
        background: url(../img/bubble-me2.png) repeat-x 0 1px;
      }
      .rt {
        width: 10px;
        height: 6px;
        background: url(../img/bubble-me1.png) no-repeat -17px 0;
      }
      .lb {
        width: 10px;
        height: 12px;
        background: url(../img/bubble-me1.png) no-repeat 0 bottom;
      }
      .cb {
        height: 12px;
        background: url(../img/bubble-me2.png) repeat-x 0 bottom;
      }
      .rb {
        width: 10px;
        height: 6px;
        background: url(../img/bubble-me1.png) no-repeat -17px bottom;
      }
      .lm {
        width: 10px;
        background: url(../img/bubble-me1.png) repeat-y -38px 0;
      }
      .rm {
        width: 20px;
        background: url(../img/bubble-me1.png) repeat-y right 0;
      }
      .rm span {
        position: absolute;
        display: inline-block;
        top: 20px;
        width: 20px;
        height: 15px;
        background: url(../img/bubble-me1.png) no-repeat -17px -20px;
      }
      .cm {
        padding: 0 0 0 5px;
        margin-top: -6px;
        background-color: @grey-fa;
        word-break: break-all;
        word-wrap: break-word;
      }
      .message-title {
        height: auto;
        overflow: hidden;
        text-align: right;
        line-height: 24px;
      }
      .message-owner {
        float: left;
        margin-right: 12px;
        font-weight: bold;
      }
      .message-content {
        position: relative;
      }
      .message-content .loading {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: url("../img/loading.gif") center no-repeat;
      }
      .message-content p {
        font-size: 12px;
        font-family: '宋体';
        color: rgba(51, 51, 51, 1);
      }
      .message-content img {
        max-width: 100%;
        cursor: zoom-in;
      }
    }
    .im-service {
      table.im-message-table {
        float: left;
      }
      .im-user-area {
        position: relative;
        float: left;
        margin-top: 5px;
        margin-right: 10px;
        width: 46px;
        text-align: center;
      }
      .im-message-detail {
        position: relative;
        margin-left: 56px;
      }
      .lt {
        width: 15px;
        height: 6px;
        background: url(../img/bubble-service1.png) no-repeat 0 0;
      }
      .ct {
        height: 6px;
        background: url(../img/bubble-service2.png) repeat-x 0 1px;
      }
      .rt {
        width: 15px;
        height: 6px;
        background: url(../img/bubble-service1.png) no-repeat -28px 0;
      }
      .lb {
        width: 15px;
        height: 12px;
        background: url(../img/bubble-service1.png) no-repeat 0 bottom;
      }
      .cb {
        height: 12px;
        background: url(../img/bubble-service2.png) repeat-x 0 bottom;
      }
      .rb {
        width: 15px;
        height: 12px;
        background: url(../img/bubble-service1.png) no-repeat -28px bottom;
      }
      .lm {
        width: 15px;
        background: url(../img/bubble-service1.png) repeat-y -44px 0;
      }
      .rm {
        width: 15px;
        background: url(../img/bubble-service1.png) repeat-y right 0;
      }
      .lm span {
        position: absolute;
        display: inline-block;
        top: 20px;
        width: 15px;
        height: 15px;
        background: url(../img/bubble-service1.png) no-repeat 0 -20px;
      }
      .cm {
        padding: 0 0 0 5px;
        margin-top: -6px;
        background-color: @calm;
        word-break: break-all;
        word-wrap: break-word;
      }
      .message-title {
        height: auto;
        overflow: hidden;
        text-align: right;
        line-height: 24px;
        color: @positive;
      }
      .message-owner {
        float: left;
        margin-right: 12px;
        font-weight: bold;
      }
      .message-content p {
        font-size: 12px;
        font-family: '宋体';
        color: rgba(51, 51, 51, 1);
      }
    }
    .im-msg {
      position: relative;
      padding: 5px 10px 6px 30px;
      margin: 12px 0;
      border: solid 1px @water;
      line-height: 20px;
      background-color: @calm;
      .notice-icon {
        position: absolute;
        top: 7px;
        left: 8px;
        width: 16px;
        height: 16px;
        background: url(../img/small-icon.png) no-repeat 0 -31px;
      }
      .msg-corner {
        position: absolute;
        z-index: 9;
        width: 10px;
        height: 10px;
        overflow: hidden;
        background: #FFF url(../img/bubble-msg.png) no-repeat;
      }
      .msg-lt {
        top: -1px;
        left: -1px;
        background-position: 0 -32px;
      }
      .msg-lb {
        bottom: -1px;
        left: -1px;
        background-position: 0 -54px;
      }
      .msg-rt {
        top: -1px;
        right: -1px;
        background-position: -7px -32px;
      }
      .msg-rb {
        bottom: -1px;
        right: -1px;
        background-position: -7px -54px;
      }
      p{
        margin: 0;
      }
    }

    .im-edit-area {
      position: relative;
      z-index: 9;
      width: 100%;
      height: 195px;
      background-color: white;
    }
    .im-toolbar {
      position: relative;
      height: 40px;
      border-bottom: 1px solid @grey-d1;
      border-top: 1px solid @grey-d1;
      line-height: 36px;
      background-color: @grey-f0;
      a, div.upload-btn {
        margin-left: 10px;
        width: 30px;
        height: 30px;
      }
      .div.upload-btn {
        cursor: pointer;
      }
      .font-btn,
      .expression-btn,
      .upload-btn,
      .bell-btn,
      .comment-btn {
        background-image: url(../img/toolbar-icon.png);
        background-repeat: no-repeat;
      }
      .font-btn {
        background-position: -1px 0;
      }
      .expression-btn {
        background-position: -36px 0;
      }
      .upload-btn {
        position: relative;
        background-position: -70px 0;
        form {
          opacity: 0;
          filter:alpha(opacity=0);
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          overflow: hidden;
        }
        input{
          width: 100%;
          height: 100%;
        }
      }
      .bell-btn {
        background-position: -140px 0;
      }
      .comment-btn {
        background-position: -210px 0;
      }
    }
    //字体和颜色
    .font-bar {
      position: absolute;
      display: none;
      top: -32px;
      left: 0;
      right: 0;
      height: 32px;
      z-index: 1000;
      background-color: @grey-e6;
      .font-family-select,
      .font-size-select {
        float: left;
        margin: 4px 5px;
        height: 24px;
        border: 1px solid @grey-d;
      }
      .font-family-select {
        width: 97px;
      }
      .font-size-select {
        width: 50px;
      }
      .color-select-btn {
        float: none;
        display: inline-block;
        margin: 5px;
        width: 22px;
        height: 22px;
        background-image: url(../img/toolbar-icon.png);
        background-repeat: no-repeat;
        background-position: -287px 0;
      }
      .color-select-btn:hover {
        background-position: -250px 0;
      }
      .font-bar-close-btn {
        position: absolute;
        top: 5px;
        right: 0;
        width: 22px;
        height: 22px;
        background-image: url(../img/small-icon.png);
        background-repeat: no-repeat;
        background-position: -81px 8px;
      }
      .font-bar-close-btn:hover {
        background-position: -81px -27px;
      }
    }

    //表情控件
    .qqFace {
      margin-top: 4px;
      background: white;
      padding: 2px;
      border: 1px #dfe6f6 solid;
    }
    .qqFace table td {
      padding: 0px;
    }
    .qqFace table td img {
      cursor: pointer;
      border: 1px #fff solid;
    }
    .qqFace table td img:hover {
      border: 1px #0066cc solid;
    }

    .im-ipt-area {
      clear: both;
      height: 97px;
      overflow-x: hidden;
      overflow-y: auto;
    }
    .im-ipt {
      padding: 5px 10px;
      width: 100%;
      height: 100%;
      resize: none;
      border: 0;
      outline: none;
      word-wrap: break-word;
      -ms-word-wrap: break-word;
      img {
        max-width: 120px;
      }
    }
    .im-ipt:focus {
      box-shadow: none;
    }
    .im-btn-area {
      width: 100%;
      height: 56px;
      text-align: right;
      border-top: 1px solid @grey-d1;
      background-color: @grey-f8;
    }
    .im-send-btn-area {
      position: relative;
      float: right;
      margin: 12px 10px;
      margin-right: 10px;
    }
    .im-send {
      position: relative;
      display: inline-block;
      margin: 0 3px;
    }
    .send-btn {
      float: left;
      width: 96px;
      height: 36px;
      border-right: 1px solid @glorious;
      border-left: 1px solid @glorious;
      line-height: 36px;
      text-align: center;
      background-image: url(../img/btn-bg.png);
      background-repeat: repeat-x;
      background-position: 0 0;
      font-family: \5FAE\8F6F\96C5\9ED1;
      font-size: 18px;
      color: @grey-6;
      text-decoration: none;
    }
    .set-send-btn {
      float: left;
      margin-left: -3px;
      width: 16px;
      height: 36px;
      border-right: 1px solid @glorious;
      line-height: 36px;
      text-align: center;
      background-image: url(../img/btn-bg.png);
      background-repeat: repeat-x;
      background-position: 0 0;
      i.glyphicon-triangle-bottom {
        font-size: 12px;
        color: darken(@glorious, 10%);
      }
    }
    .send-btn:hover,
    .set-send-btn:hover {
      background-position: 0 -36px;
    }
    .set-send-key {
      display: none;
      position: absolute;
      top: -63px;
      right: 3px;
      height: 50px;
      width: 240px;
      border: solid 1px @grey-d9;
      background-color: @grey-f5;
      label {
        padding-right: 10px;
        margin-bottom: 0;
        line-height: 24px;
      }
      input {
        position: absolute;
        left: -10000px;
      }
      a {
        text-align: left;
        font-weight: 400;
        text-decoration: none;
        color: @grey-3;
      }
      .im-icon-right,
      .im-icon-check {
        position: absolute;
        left: 10px;
        width: 20px;
        height: 20px;
        background-image: url(../img/small-icon.png);
        background-repeat: no-repeat;
        background-position: -33px -26px;
      }
      .im-icon-right {
        visibility: hidden;
      }
    }
    .close-btn {
      float: right;
      display: inline-block;
      margin: 12px 10px;
      width: 96px;
      height: 36px;
      border-right: solid 1px @grey-b4;
      border-left: solid 1px @grey-b4;
      line-height: 36px;
      text-align: center;
      font-family: \5FAE\8F6F\96C5\9ED1;
      font-size: 18px;
      color: @grey-6;
      text-decoration: none;
      background-image: url(../img/btn-bg.png);
      background-repeat: repeat-x;
      background-position: 0 -480px;
    }
    .close-btn:hover {
      background-position: 0 -516px;
    }
    .im-edit-tip {
      float: right;
      margin: 14px 10px 10px;
      height: 30px;
      line-height: 30px;
      font-family: \5FAE\8F6F\96C5\9ED1, \5b8b\4f53;
      font-size: 14px;
      color: #909090;
    }

  }
  //查看大图
  .im-view-pic {
    display: none;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.2);
    filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000,endColorstr=#33000000);
    .close-btn {
      position: absolute;
      right: 0;
      top: 0;
      width: 28px;
      height: 28px;
      cursor: pointer;
      background-image: url(../img/view-pic.png);
      background-repeat: no-repeat;
      background-position: -222px -157px;
    }
    .close-btn:hover {
      background-position: -256px -157px;
    }
    .prev,
    .next {
      position: absolute;
      top: 50%;
      width: 36px;
      height: 36px;
      background-image: url(../img/view-pic.png);
      background-repeat: no-repeat;
    }
    .prev {
      left: 30px;
      background-position: -83px -116px;
    }
    .next {
      right: 30px;
      background-position: 2px -116px;
    }
    .prev:hover {
      background-position: -127px -116px;
    }
    .next:hover {
      background-position: -38px -116px;
    }
  }

}
